package vn.orderonline.core.dao.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "DRINK")
public class Drink implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer drinkId;
	private String drinkName;
	private String drinkTitle;
	private String drinkImage;
	private Float oldPrice;
	private Float newPrice;
	private Timestamp createTime;
	private Timestamp updateTime;
	private String createId;
	private String updateId;
	private Boolean drinkStatus;
	private String description;
	
	public Drink() {
		
	}

	@Id
	@GeneratedValue
	@Column(name = "DRINK_ID", unique = true, nullable = false, precision = 11, scale = 0)
	public Integer getDrinkId() {
		return drinkId;
	}

	public void setDrinkId(Integer drinkId) {
		this.drinkId = drinkId;
	}

	@Column(name = "DRINK_NAME", unique = true, nullable = false, length = 255)
	public String getDrinkName() {
		return drinkName;
	}

	public void setDrinkName(String drinkName) {
		this.drinkName = drinkName;
	}

	@Column(name = "DRINK_TITLE", length = 255)
	public String getDrinkTitle() {
		return drinkTitle;
	}

	public void setDrinkTitle(String drinkTitle) {
		this.drinkTitle = drinkTitle;
	}

	@Column(name = "DRINK_IMAGE")
	public String getDrinkImage() {
		return drinkImage;
	}

	public void setDrinkImage(String drinkImage) {
		this.drinkImage = drinkImage;
	}

	@Column(name = "OLD_PRICE", nullable = false, precision = 22, scale = 2)
	public Float getOldPrice() {
		return oldPrice;
	}

	public void setOldPrice(Float oldPrice) {
		this.oldPrice = oldPrice;
	}

	@Column(name = "NEW_PRICE", precision = 22, scale = 2)
	public Float getNewPrice() {
		return newPrice;
	}

	public void setNewPrice(Float newPrice) {
		this.newPrice = newPrice;
	}

	@Column(name = "CREATE_TIME", nullable = false)
	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "UPDATE_TIME")
	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "CREATE_ID", nullable = false, length = 255)
	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	@Column(name = "UPDATE_ID", length = 255)
	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	@Column(name = "DRINK_STATUS", nullable = false)
	public Boolean getDrinkStatus() {
		return drinkStatus;
	}

	public void setDrinkStatus(Boolean drinkStatus) {
		this.drinkStatus = drinkStatus;
	}

	@Column(name = "DESCRIPTION")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
